package CreationalPattern.AbstractFactory;

public class Client {
    public static void main(String[] args) {
        // 使用抽象层定义
        SkinFactory skinFactory;
        Button button;
        Combobox combobox;
        TextField textField;
        skinFactory = (SkinFactory)XMLUtil.getBean();
        button = skinFactory.createButton();
        combobox = skinFactory.createComboBox();
        textField = skinFactory.createTextField();
        button.display();
        combobox.display();
        textField.display();
    }
}
